﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolePermission.aspx.cs" Inherits="MidSoft.Sys.RolePermission" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>权限分配</title>
    <link href="../Themes/Default/Images/skin.css" rel="stylesheet" type="text/css" />
    <link href="../Themes/Default/Css/Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
        function imgOK() {
            document.getElementById("<%= btnOK.ClientID %>").click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="inpass" border="1px">
              <tr>
                <td height="10" width="80px"></td>
                <td></td>
              </tr>
              <tr>
                <td height="31" align="center">所属角色：</td>
                <td><asp:Label ID="RoleName" runat="server"></asp:Label></td>
              </tr>
              <tr>
                <td colspan="2" valign="bottom"><div style="border-top:solid 1px #cccccc; width:100%; height:2px;"></div></td>
              </tr>
              <tr>
                <td height="31" align="center">
                    模块名称：<br />
                    <asp:LinkButton ID="lbtAllMK" runat="server" OnClick="lbtAllMK_Click" ForeColor="Gray">全选</asp:LinkButton>
                    <asp:LinkButton ID="lbtESCMK" runat="server" OnClick="lbtESCMK_Click" ForeColor="Gray">取消</asp:LinkButton>&nbsp;
                </td>
                <td>
                    <asp:CheckBoxList ID="cblMKName" runat="server" AutoPostBack="True" 
                            DataTextField="PowerName" DataValueField="PowerId"  RepeatColumns="4" 
                            OnSelectedIndexChanged="cblMKName_SelectedIndexChanged" 
                            RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </td>
              </tr>
              <tr>
                <td colspan="2"  valign="bottom"><div style="border-top:solid 1px #cccccc; width:100%; height:2px;"></div></td>
              </tr>
              <tr>
                <td height="31" align="center">
                    菜单名称：<br />
                   <asp:LinkButton ID="lbtAllCD" runat="server" OnClick="lbtAllCD_Click" ForeColor="Gray">全选</asp:LinkButton>
                   <asp:LinkButton ID="lbtESCCD" runat="server" OnClick="lbtESCCD_Click" ForeColor="Gray">取消</asp:LinkButton>&nbsp;
                </td>
                <td>
                    <asp:CheckBoxList ID="cblCDName" runat="server" DataTextField="PowerName" 
                            RepeatColumns="4" DataValueField="PowerId" RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </td>
              </tr>
              <tr>
                <td height="10"></td>
                <td></td>
              </tr>
              <tr>
                <td height="1" colspan="3" align="center">
                    <input id="btnOK" type="submit" value="保存" runat="server" onclick="imgOK();" onserverclick="SavePopedom_ServerClick" />
                  </td>
              </tr>
            </table>
    </div>
    </form>
</body>
</html>
